package com.jason.kotlin.meta.architecture2.repository

import com.jason.kotlin.meta.architecture2.model.ArticleBean
import com.jason.kotlin.meta.architecture2.model.ClassifyBean
import com.jason.kotlin.meta.architecture2.model.WanApiPageResponse
import com.jason.kotlin.meta.architecture2.model.WanApiResponse

interface ProjectApi {

    /**
     * 获取项目分类
     *
     * @return WanApiResponse<List<ClassifyBean>>
     */
    suspend fun getProjectClassify(): WanApiResponse<List<ClassifyBean>>

    /**
     * 获取项目文章列表
     *
     * @param page Int
     * @param cid Int
     * @return WanApiResponse<WanApiPageResponse<ArticleBean>>
     */
    suspend fun getProjectList(page: Int, cid: Int): WanApiResponse<WanApiPageResponse<ArticleBean>>
}